package com.maven.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.maven.bean.User;
import com.maven.dao.UserMapper;

@Service("userServiceImpl")
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserMapper userMapper;

	@Override
	public User selectUserNameByPassword(String username,String password) {
		
		User user = userMapper.selectUserNameByPassword(username,password);
		
        	return user;
	}
	
}
